
<?php foreach ($list as $v){?>
<div  class="list-item clearfix">
    <div class="item-img fl">
        <img src="<?php echo getAvatar($v['create_user_info']['avatar'])?>" class="head-img" />
    </div>
    <div class="item-detail">
        <a href="<?php echo url('detail',['id'=>$v['id']])?>">
        <div class="detail1">
            <p class="title pfbold one-txt-cut">
                <?php echo $v['title']?>
            </p>

            <?php if((time()-(strtotime($v['add_time'])))<604800){?>
<!--                一个星期内的提议属于最新提议-->
            <img src="_images/icon/new-icon.png" class="new-icon" />
            <?php }?>
        </div>
        <div class="tag2">
            <span><?php echo $v['cate_name']?></span>
            <span><?php echo $department[$v['user_department']]?></span>
        </div>
        <div class="detail3">
            <div class="text">
                <?php echo $v['questiont']?>
            </div>
        </div>
        </a>
        <div class="detail4">
            <p><?php echo $v['create_user_info']['name']?>：<?php echo $v['add_time']?></p>
            <p><?php echo $status[$v['status']]?></p>
        </div>
    </div>
</div>
<?php }?>